home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 264_01 / fmt.doc < prev    next >
Text File  |  1980-01-01  |  1KB  |  34 lines

  1. FMT
  2.  
  3. Purpose
  4. simple text formatter
  5.  
  6. Syntax
  7. fmt [-#] [file...]
  8.  
  9. Comments
  10. Fmt, from the concatenation of the input files, or from the standard
  11. input if no files are specified, produces standard output with each line
  12. as close as possible to the given number of characters wide (default
  13. 72).  It preserves blank lines, spaces at the beginnings of lines and
  14. between words, start of paragraph indentations, and dot command lines
  15. (used by many more complex text formatters). 
  16.  
  17. Fmt is useful for formatting mail messages, and can be used to justify
  18. a paragraph from within vi(1) with the key sequence {!}fmt.
  19.  
  20. Options
  21. -#      set maximum line width to # (default 72).
  22.  
  23. Bugs
  24. The carriage return character is treated, perhaps wrongly, as an
  25. ordinary nonwhite character.  Indents longer than the maximum line width
  26. are truncated.  When a sentence-ending character (a period, exclamation
  27. point, question mark, or double quote) occurs at the end of an input
  28. line, fmt adds one space after it, unless the first non-white character
  29. on the next line is a capital letter, in which case two spaces are added
  30. on the assumption that the capital begins a new sentence.  This behavior
  31. is not always correct.  The second lines of paragraphs with the first
  32. line indented and long first lines are indented in the output.
  33.  
  34.